package com.eatandenjoy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.bit.campusapp.R;
import com.club.LoginActivity;

public class EatAndEnjoyIntroActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.eatandenojy_clicklist);

		Intent intent = getIntent();
		Bundle data = intent.getExtras();
		final String writer = data.getString("EnE_writer");
		int img = data.getInt("EnE_Img");
		final String title = data.getString("EnE_title");

		((TextView) findViewById(R.id.txt_EnE_writer_clicklist)).setText(writer);
		((ImageView) findViewById(R.id.img_EnE_clicklist)).setImageResource(img);
		((EditText) findViewById(R.id.edit_EnE_Maintitle_write_clicklist))
				.setText(title);
		
		Button btn_Back = (Button) findViewById(R.id.btn_EnE_write_back_clicklist);
		
		btn_Back.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.club_intro, menu);
		return true;
	}

}
